# def common_assert(resp, status_code, success, code, message):
#     assert resp.status_code == status_code
#     assert resp.json().get("success") == success
#     assert resp.json().get("code") == code
#     assert resp.json().get("message") == message
# class common_assert():
def user_add(resp,status_code,success,code,message):
    assert resp.status_code == status_code
    assert resp.json().get("success") == success
    assert resp.json().get("code") == code
    assert resp.json().get("message") == message
    # assert resp.json().get("data").get("departmentId") == departmentId
